package com.nmsl.controller;

import com.nmsl.common.core.domain.R;
import com.nmsl.service.TyEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tyEmployee")
public class TyEmployeeController {
    @Autowired
    private TyEmployeeService tyEmployeeService;

    @RequestMapping("/getAllEmployee")
    public R getAllEmployee() {
        return R.ok(tyEmployeeService.selectAllEmployee());
    }
}
